<template>
    <div class="account-list">
        <header>
            <!-- 名称查询 -->
            <div class="search">
                 <el-form :inline="true" :model="searchData" class="demo-form-inline">
                   
                    <el-button type="primary" icon="el-icon-circle-plus-outline" @click="authorityAdd" style="margin-bottom:20px;" size="medium">添加权限</el-button>
                </el-form>
            </div>
            
        </header>
        <!-- 列表 -->
        <div class="list">
            <div class="list-opate">
                <el-table :data="list" style="width: 100%">
                    <el-table-column align='center' prop="id" label="ID"  width="50" ></el-table-column>
                    <el-table-column align='center' prop="name" label="权限名称"></el-table-column>
                    <el-table-column align='center' prop="type" label="权限类型"></el-table-column>
                    <el-table-column align='center' prop="module_id" label="所属模块"></el-table-column>
                    <el-table-column fixed="right" label="操作" width="100">
                        <template slot-scope="scope">
                            <el-button type="text" size="small" @click="authorityEdit(scope.row)">编辑</el-button>
                            <el-button type="text" size="small" @click="authorityDel(scope.row)">删除</el-button>
                        </template>
                    </el-table-column>
                </el-table>
            </div>
        </div>
    </div>
</template>
<script src='../../contral/management_authority.js'></script>

